/*
 * ThreadEngineStart.cpp
 *
 *  Created on: Jan 27, 2013
 *      Author: Drew Prevost
 */

#include "ThreadEngineStart.h"
#include "ThreadEngineSpin.h"
#include "ThreadEnginePrime.h"

ThreadEngineStart::ThreadEngineStart(
                                      ThreadServoRate & threadServoExhaust,
                                      uint8_t nPinGlowPlug,
                                      uint8_t nPinGenConnect,
                                      uint8_t nPinStarterMotor,
                                      uint8_t nPinGenDisonnect,
                                      uint8_t nPinGenMonitor )
    : ThreadEngineBase( threadServoExhaust, nPinGlowPlug, nPinGenConnect, nPinStarterMotor, nPinGenDisonnect, nPinGenMonitor ),
      threadEngineSpin( threadServoExhaust, nPinGlowPlug, nPinGenConnect, nPinStarterMotor, nPinGenDisonnect, nPinGenMonitor ),
      threadEnginePrime( threadServoExhaust, nPinGlowPlug, nPinGenConnect, nPinStarterMotor, nPinGenDisonnect, nPinGenMonitor )

{
}

ThreadEngineStart::~ThreadEngineStart()
{
}

bool ThreadEngineStart::run()
{
  threadEngineSpin.run();
  threadEnginePrime.run();

  PT_BEGIN()
  ;

  //TODO: Do yo thang.

PT_END()
;
return false;
}
